package com.ihg.hiex.admin.dao.account;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.ihg.hiex.entity.user.Supervisor;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface SupervisorDao {

    /**
     * @param email
     * @return
     */
    @Query("FROM Supervisor WHERE disabled = false AND email = :email")
    public Supervisor loadByEmail(@Variable("email") String email);
    
}
